﻿//Write an expression that checks for given integer if it's third digit (right-to-left) is 7. E.g. 1732 -> true

using System;

class CheckIfThirdDigitIs7
{
    static void Main()
    {
        Console.Write("Enter number to check: ");
        int integerToCheck = int.Parse(Console.ReadLine());
        
        Console.WriteLine("{0} -> {1}.", integerToCheck, (integerToCheck / 100) % 10 == 7);
    }
}
